package com.saris.primego.service;


import com.saris.primego.common.result.PageResult;
import com.saris.primego.pojo.dto.EmployeeDTO;
import com.saris.primego.pojo.dto.EmployeeLoginDTO;
import com.saris.primego.pojo.dto.EmployeePageQueryDTO;
import com.saris.primego.pojo.entity.Employee;

public interface EmployeeService {

    Employee getByUsername(String username);

    Employee login(EmployeeLoginDTO employeeLoginDTO);

    Long addEmployee(EmployeeDTO employeeDTO);

    PageResult<Employee> pagedQuery(EmployeePageQueryDTO employeePageQueryDTO);

    void startOrStop(Integer status, Long id);

    Employee getById(Long id);

    void update(EmployeeDTO employeeDTO);
}
